package deftoolbar

import "yunj/pkg/yunj/core/builder/builderaction"

// 打印
type Print struct {
	Action
}

func NewPrint(title ...string) *Print {
	a := &Print{}

	builderaction.SetActionInstance(&a.Action.Action, a)
	a.SetActionCode("print")
	return a
}

// 设置权限
func (a *Print) SetAuth(auth string) *Print {
	a.Auth = auth
	return a
}
